package com.jxbai.design.pattern.dcxy.prototype;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 原型类
 * @author jxbai
 * @date 2021/12/13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Cloneable {

    private String name;

    private Integer age;

    private String email;

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
